<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core">

<ui:composition template="templates2/layout.xhtml">
	<ui:define name="content">
		<h:form>			
			<article class="module width_full"> <header>
			<h3>Rate VND</h3>
			</header>
			<div id="tab1" class="tab_content" style="display: block;">
					<h:dataTable styleClass="tablesorter"
						value="#{savingInterestManagedBean.savingInterestRates}" first=""
						var="i" rows="">
						<h:column>
							<f:facet name="header">Interest Rate ID</f:facet>
							#{i.interestRateID}
						</h:column>
						<h:column>
							<f:facet name="header">Rate</f:facet>
							#{i.rate}
						</h:column>
						<h:column>
							<f:facet name="header">Currency</f:facet>
							#{i.currency.currency}
						</h:column>
						<h:column>
							<f:facet name="header">Period Type</f:facet>
							#{i.periodType.savingPeriod} #{i.periodType.unit}
							<c:if test="${i.periodType.savingPeriod gt 1}">s</c:if>
						</h:column>
						<h:column>
							<f:facet name="header">Created Date</f:facet>
							#{i.createdDate}
						</h:column>
					</h:dataTable>
				</div>
			<footer>
			<div class="submit_link">
				 
					
					
					
			</div>
			</footer>
			<!-- <footer> <div class="submit_link">
				<input type="submit" value="Search" class="alt_btn" /> <input
					type="submit" value="Reset" />
			</div> </footer> --> 
			</article>
			<article class="module width_full">
			 <!-- end of .tab_container --> </article>
		</h:form>
	</ui:define>
	<ui:define name="sidebar">
		<ui:include src="templates2/sidebar.xhtml">
			<ui:param name="current" value="home"></ui:param>
		</ui:include>
	</ui:define>
</ui:composition>
</html>